export const tableConfig = {
    headerOperation: [
        {
            type: 'create',
            visible: true,
            permission: ['POST:/api/user/manage/users'],
            className: '',
            name: '新增用户',
            button: 'button',
            radioGroup: []
        }
    ],
    search: [
        {
            key: 'name',
            type: 'text',
            name: '用户名称',
            modelValue: ''
        },
        {
            key: 'account',
            type: 'text',
            name: '登录账号',
            modelValue: ''
        },
        {
            key: 'status',
            type: 'select',
            name: '状态',
            modelValue: '',
            options: []
        },
        {
            key: 'userType',
            type: 'select',
            name: '账户类型',
            modelValue: '',
            options: []
        }
    ],
    permission: ['GET:/api/user/manage/users'],
    table: {
        operationWidth: '190px',
        operation: [
            {
                type: 'edit',
                visible: true,
                permission: ['PUT:/api/user/manage/users'],
                className: 'edit',
                name: '编辑'
            },
            {
                type: 'authorization',
                visible: true,
                permission: ['PUT:/api/user/manage/users/assign-roles'],
                className: 'edit',
                name: '授权'
            },
            {
                type: 'resetPassword',
                visible: true,
                permission: ['PUT:/api/user/manage/users/reset-pwd'],
                className: 'edit',
                name: '重置密码'
            }
        ],
        propName: {
            name: '用户名称',
            account: '登录账号',
            roleList: '用户角色',
            userType: '账户类型',
            status: '状态',
            createTime: '创建时间',
            updateTime: '操作时间'
        },
        expandPropName: {},
        showSummary: false,
        selection: false,
        expand: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: ['PUT:/api/user/manage/users/status'],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
